package com.hxl.demo.service.Impl;

import com.hxl.demo.entity.SocialSecurityCard;
import com.hxl.demo.mapper.SocialSecurityCardMapper;
import com.hxl.demo.service.SocialSecurityCardService;
import com.hxl.demo.tools.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

//@Service
//public class SocialSecurityCardServiceImpl implements SocialSecurityCardService {
//    @Resource
//    private SocialSecurityCardMapper socialSecurityCardMapper;
//    @Override
//    public PageInfo<SocialSecurityCard> selectAll(int begin, int length, SocialSecurityCard socialSecurityCard) {
//        PageInfo<SocialSecurityCard> pageInfo = new PageInfo<>();
//        pageInfo.setTotal(socialSecurityCardMapper.getCount(socialSecurityCard));
//        Map<String, Object> map = new HashMap<>();
//        map.put("begin", begin);
//        map.put("length", length);
//        map.put("social", socialSecurityCard);
//        pageInfo.setData(socialSecurityCardMapper.selectAll(map));
//        return pageInfo;
//    }
//}
